package com.gongpingjialoan.bean.car;

import android.text.TextUtils;

import com.gongpingjialoan.utility.DiscountImageUtils;

import java.util.List;

/**
 * Created by Administrator on 2015/10/28.
 */
public class RecomendCarBean {

    private String domain;
    private String price;
    private String remain_time;
    private String promo_total_seconds;
    private String d_remain_time;
    private String promo_price;
    private int month;
    private String appoint_count;
    private String mile;
    private int id;
    private int year;
    private String title;
    private String qs_tags;
    private String dealer_tag;
    private String cut_price;
    private String recommend_type;
    private String tags;
    private List<String> good_car_tags;
    private String promo_id;
    private String origin_price;
    private String lowest_price;
    private String last_price;
    private String eval_price;
    private Loaninfo loan_info;

    public Loaninfo getLoan_info() {
        return loan_info;
    }

    public void setLoan_info(Loaninfo loan_info) {
        this.loan_info = loan_info;
    }

    public String getEval_price() {
        return eval_price;
    }

    public void setEval_price(String eval_price) {
        this.eval_price = eval_price;
    }

    public String getOrigin_price() {
        return origin_price;
    }

    public void setOrigin_price(String origin_price) {
        this.origin_price = origin_price;
    }

    public String getLowest_price() {
        return lowest_price;
    }

    public void setLowest_price(String lowest_price) {
        this.lowest_price = lowest_price;
    }

    public String getLast_price() {
        return last_price;
    }

    public void setLast_price(String last_price) {
        this.last_price = last_price;
    }

    public String getPromo_total_seconds() {
        return promo_total_seconds;
    }

    public void setPromo_total_seconds(String promo_total_seconds) {
        this.promo_total_seconds = promo_total_seconds;
    }

    public List<String> getGood_car_tags() {
        return good_car_tags;
    }

    public void setGood_car_tags(List<String> good_car_tags) {
        this.good_car_tags = good_car_tags;
    }

    public String getD_remain_time() {
        if (TextUtils.isEmpty(d_remain_time)) {
            d_remain_time = remain_time;
        }
        return d_remain_time;
    }

    public void setD_remain_time(String d_remain_time) {
        this.d_remain_time = d_remain_time;
    }

    private boolean is_appointed;

    public boolean is_appointed() {
        return is_appointed;
    }

    public void setIs_appointed(boolean is_appointed) {
        this.is_appointed = is_appointed;
    }

    public String getCut_price() {
        return cut_price;
    }

    public void setCut_price(String cut_price) {
        this.cut_price = cut_price;
    }

    private String image_urls;


    private List<OtherCarBean> other_plat_price;

    public List<OtherCarBean> getOther_plat_price() {
        return other_plat_price;
    }

    public void setOther_plat_price(List<OtherCarBean> other_plat_price) {
        this.other_plat_price = other_plat_price;
    }


    private String status;

    public String getDealer_tag() {
        return dealer_tag;
    }

    public void setDealer_tag(String dealer_tag) {
        this.dealer_tag = dealer_tag;
    }


    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getImage_urls() {
        return image_urls;
    }

    public void setImage_urls(String image_urls) {
        this.image_urls = image_urls;
    }

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getRemain_time() {
        return remain_time;
    }

    public void setRemain_time(String remain_time) {
        this.remain_time = remain_time;
    }

    public String getPromo_price() {
        return promo_price;
    }

    public void setPromo_price(String promo_price) {
        this.promo_price = promo_price;
    }

    public int getMonth() {
        return month;
    }

    public void setMonth(int month) {
        this.month = month;
    }

    public String getAppoint_count() {
        return appoint_count;
    }

    public void setAppoint_count(String appoint_count) {
        this.appoint_count = appoint_count;
    }

    public String getMile() {
        return mile;
    }

    public void setMile(String mile) {
        this.mile = mile;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getQs_tags() {
        return qs_tags;
    }

    public void setQs_tags(String qs_tags) {
        this.qs_tags = qs_tags;
    }

    public String getRecommend_type() {
        return recommend_type;
    }

    public void setRecommend_type(String recommend_type) {
        this.recommend_type = recommend_type;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public String getPromo_id() {
        return promo_id;
    }

    public void setPromo_id(String promo_id) {
        this.promo_id = promo_id;
    }


    public static class OtherCarBean {
        private String title;
        private String plat;
        private String price;
        private int uri;

        public int getUri() {
            try {
                uri = DiscountImageUtils.images.get(plat);
            } catch (Exception e) {
                uri = 0;
            }
            return uri;
        }

        public void setUri(int uri) {
            this.uri = uri;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getPlat() {
            return plat;
        }

        public void setPlat(String plat) {
            this.plat = plat;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }
    }


    public static class Loaninfo {
        private int down_payments;
        private int months;
        private int monthly_payments;

        public int getDown_payments() {
            return down_payments;
        }

        public void setDown_payments(int down_payments) {
            this.down_payments = down_payments;
        }

        public int getMonthly_payments() {
            return monthly_payments;
        }

        public void setMonthly_payments(int monthly_payments) {
            this.monthly_payments = monthly_payments;
        }

        public int getMonths() {
            return months;
        }

        public void setMonths(int months) {
            this.months = months;
        }
    }

}
